﻿using LView.CMS.Core;
using MongoDB.Bson.Serialization.Attributes;
using System;

namespace LView.CMS.Models
{
    public class LMyTask
    {
        public string Id { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        [MongoIndex("IDX_LMyTask_UserId")]
        public string UserId { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        [MongoIndex("IDX_LMyTask_UserName")]
        public string UserName { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        [MongoIndex("IDX_LMyTask_TaskId")]
        public string TaskId { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        [MongoIndex("IDX_LMyTask_Name")]
        public string Name { get; set; }

        /// <summary>
        /// 指派人
        /// </summary>
        public string AssignUserName { get; set; }

        /// <summary>
        /// 指派时间
        /// </summary>
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime AssignDate { get; set; }

        /// <summary>
        /// 百分比
        /// </summary>
        [MongoIndex("IDX_LMyTask_Percent")]
        public decimal Percent { get; set; }

        /// <summary>
        /// 0 进行中 1 已完成 2 已归档
        /// </summary>
        public int Status { get; set; }
    }
}
